package javango.contrib.jquery;

import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

/**
 * Mark the specified class as promptable.
 * You must specify the property to search on.
 * Currently only String types are supported (or a property that supports ilike, '%q%'
 *
 * TODO Mark the property as required.
 * @author johns
 *
 */
@Retention(RetentionPolicy.RUNTIME)
@Target({ElementType.TYPE})
public @interface Promptable
{
        String property();

        String requiredRole() default "";
}
